package cn.milolab.djback.dao;

import cn.milolab.djback.bean.entity.JobRecord;
import cn.milolab.djback.bean.request.ArrangeJobRequest;
import cn.milolab.djback.bean.request.ExchangeJobRequest;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;

/**
 * @author 叶欣委
 */
@Repository
public interface JobRecordDAO {

    List<JobRecord> getJobRecordByTime(Date startTime, Date endTime);

    Integer deleteJobRecordByJobId(Integer id);

    List<Integer> getEmployeeIdByJobId(Integer id);

    List<Integer> getJobIdByEmployeeId(Integer employeeId);

    List<Date> getStartTimeByJobId(Integer jobId);

    List<Date> getEndTimeByJobId(Integer jobId);

    Integer insertJobRecord(Integer jobId , Date startTime, Date endTime, Integer employeeId, Integer isArrange);

    Integer updateEmployeeIdById(ExchangeJobRequest exchangeJobRequest);

    Integer deleteJobRecordByEmployeeId(Integer id);

    List<JobRecord> getJobRecordByJobId(Integer jobId);
}
